<div id="menu">

    <?php

    $acl = new Cms_Model_Acl_Cms($this->AuthInfo('role'));

    echo $this->navigation()
              ->setAcl($acl)
              ->setRole($this->AuthInfo('role'))
              ->menu()
              ->setUlClass('nav left');
    ?>
  
  <ul class="nav right">
    <li id="logout"><a class="top" href="<?php echo $this->url(array(), 'cmsLogout');?>">Logout</a></li>
  </ul>

</div>
<script type="text/javascript">
<!--
$(document).ready(function() {
	$('.nav').superfish({
		hoverClass	 : 'sfHover',
		pathClass	 : 'overideThisToUse',
		delay		 : 0,
		animation	 : {height: 'show'},
		speed		 : 'normal',
		autoArrows   : false,
		dropShadows  : false,
		disableHI	 : false, /* set to true to disable hoverIntent detection */
		onInit		 : function(){},
		onBeforeShow : function(){},
		onShow		 : function(){},
		onHide		 : function(){}
	});

	$('.nav').css('display', 'block');
});
//-->
</script>

<script type="text/javascript"><!--
$(document).ready(function() {

       $('.nav a[href=\'#\']').each(function(){
           var elementParent = $(this).parent();
           var n = $(elementParent).has('a[href*=\'/\']').length;
           
           if(n == 0){
               $(elementParent).remove();
           }
        });

});
//--></script>